@extends('admin.layout.layout')


     @section('content')   
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">景点修改</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>


<!--                 景点添加列表                                   -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        
                        <div class="panel-body">
                            <div class="row">
                         
                                <div class="col-lg-6 col-lg-offset-3">
                                  
                                 
                                  @if (count($errors) > 0)
                                        <div class="alert alert-danger">
                                            <ul>
                                                @foreach ($errors->all() as $error)
                                                    <li>{{ $error }}</li>
                                                @endforeach
                                            </ul>
                                        </div>
                                    @endif



                                    <form role="form"  action="{{url('/admin/scenic/update')}}" mothed="post">
                                 
                                                <div class="form-group">
                                                    <label>景点名称</label>
                                                    <input class="form-control" name="name"  type="text" value="{{$scenic->name}}"> 
                                                </div>
                                              
                                                <div class="form-group">
                                                    <label>景点简介</label>
                                                    <input class="form-control" name="description" type="text"  value="{{$scenic->description}}">
                                                </div>

                                                <div class="form-group">
                                                    <label>地址</label>
                                                    <input class="form-control" name="address" type="text"  value="{{$scenic->address}}">
                                                </div>
                                                 <div class="form-group">
                                                    <label>开放时间</label>
                                                    <input class="form-control" name="ktime" type="text"  value="{{$scenic->ktime}}">
                                                </div>
                                                <div class="form-group">
                                                    <label>服务保障</label>
                                                    <input class="form-control" name="server" type="text"  value="{{$scenic->server}}">
                                                </div>
                                                <div class="form-group">
                                                    <label>门票</label>
                                                    <input class="form-control" name="price" type="text"  value="{{$scenic->price}}">
                                                </div>
                                                <div class="form-group">
                                                    <label>原价</label>
                                                    <input class="form-control" name="oldprice" type="text"  value="{{$scenic->oldprice}}">
                                                </div>
                                                  



                                                <input type="hidden" name="id" value="{{$scenic->id}}">
                                             {{csrf_field()}}


                                                <button class="btn btn-primary btn-lg btn-block">景点修改 </button>
                                        
                                      
                                    </form>   
                                </div>

                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>

    @endsection
    @section('myjs')
    <script type="text/javascript">
   
    </script>
    @endsection